module.exports = async (action, reply) => {
    try {
        let result = await action();
        if (typeof result != 'object') {
            result = { simpleValue: result };
        }

        reply(null, result || { simpleValue: 'no-reply' });
    } catch (err) {
        reply(err, null);
    }
}